package com.pal.chat.controller;

import com.pal.common.vo.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
/**
 * @Author：LSM
 * @Date：2022/07/18/16:28
 */
@RestController
@RequestMapping("/server/task/")
public class TaskController {
    @GetMapping("ctime.do")
    public R ctime(){
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        return R.ok("当前时间"+format.format(System.currentTimeMillis()));
//        return "当前时间"+new Date();
    }

}
